﻿namespace FD_DB
{
    public class IniDB
    {
        SqlSugar.SqlSugarClient SqlSugarClient;
        public IniDB()
        {
            string path = AppDomain.CurrentDomain.BaseDirectory;
            SqlSugarClient = new SqlSugar.SqlSugarClient(new SqlSugar.ConnectionConfig() { 
            DbType=SqlSugar.DbType.Sqlite,
            ConnectionString= "DataSource="+ path + "data",
            IsAutoCloseConnection=true,
            });
            SqlSugarClient.DbMaintenance.CreateDatabase();
        }
    }
}